package com.lq.gitee;

import java.io.File;

public class Configuration {

    private static final File WORK_DIR = new File("C:\\Users\\lq\\Desktop\\working-dir");

    // 原始微信支付截图文件夹
    public static final File BILL_SRC = new File(WORK_DIR, "src");

    // 剪切、二值化后的图片文件夹
    public static final File CROP_FOLDER = new File(WORK_DIR, "crop");

    // 金额数值文件夹
    public static final File MONEY_VALUE_FOLDER = new File(WORK_DIR, "money");

    // 单个数字文件夹
    public static final File NUMBERS_FOLDER = new File(WORK_DIR, "numbers");

    public static final File SAMPLES_FOLDER = new File(WORK_DIR, "samples");

    static {
        if (!CROP_FOLDER.exists() && !CROP_FOLDER.mkdir()
                || !MONEY_VALUE_FOLDER.exists() && !MONEY_VALUE_FOLDER.mkdir()
                || !NUMBERS_FOLDER.exists() && !NUMBERS_FOLDER.mkdir()) {
            System.out.println("请确保有创建文件的权限");
            System.exit(-1);
        }
    }

}
